package com.itheima.commons.model.vo;

import com.itheima.commons.model.domain.Subject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SubjectVo implements Serializable {

    private String id;//试题编号
    private String question;// 题目
    private List<?> options;//选项


    public SubjectVo(Subject subject, List list) {
        this.id = subject.getId().toString();
        this.question = subject.getQuestion();
        //this.isLock = Convert.toInt(subject.getIsLock());
        this.options = list;
    }
}